package com.fjec.common.util;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class SpecialMapUtil {
    public static Map<String, Object> lowKey(Map<String, Object> s) {
        Iterator<Map.Entry<String, Object>> iterator = s.entrySet().iterator();
        Map<String, Object> t = new HashMap<>();
        while (iterator.hasNext()) {
            Map.Entry e = iterator.next();
            String key = e.getKey().toString();
            // lower first letter of String
            char c[] = key.toCharArray();
            c[0] = Character.toLowerCase(c[0]);
            key = new String(c);

            t.put(key, e.getValue());
        }
        return t;
    }
}
